package com.tjetc.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Scheduling {
    /**
     * 排班id
     */
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 所属门诊id
     */
    private Integer cid;

    /**
     * 医生id
     */
    private Integer did;

    /**
     * 坐班日期
     */
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date date;

    /**
     * 开始时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date starttime;

    /**
     * 结束时间
     */
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endtime;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 可挂号数量
     */
    private Integer count;

    /**
     * 挂号剩余数量
     */
    private Integer leaveCount;

    /**
     * 1可以接诊0停止接诊
     */
    private Integer state;

    /**
     * 房间号id
     */
    private Integer roomId;

    /**
     * 可否候补1可以0不可以
     */
    private Integer isAlternate;
    private Clinic clinic;
    private Doctor doctor;
    private RoomAddress roomAddress;
}